package com.example.mqttledmenu;

public class PublishNews {
    public String title;
    public String publicId;
    public String department_name;

    PublishNews(String title, String department_name, String publicId) {
        this.title = title;
        this.publicId = publicId;
        this.department_name = department_name;
    }

    public String ChangeToString() {
        return "{" +
                "\"title\":" + "\"" + title + "\"" +
                ",\"department_name\":" + "\"" + department_name + "\"" +
                ",\"news_id\":" + publicId +
                "}";
    }

}